home *** CD-ROM | disk | FTP | other *** search
- ///////////////////////////////////////////
- /// UMS - Universal Message System ///
- /// Documentation of the ARexx Inteface ///
- ///////////////////////////////////////////
-
- ums.library is now a ARexx function library. The query function is at
- offset -210. Use addlib() to RXLIB install it in the global library list
- of ARexx.
-
- Please refer to ums' autodoc to get a general understandig of
- the functions. This file only documents the bare interface.
-
- "UmsConsts.rexx" defines all constants concering UMS. "UMS-Sekeleton.rexx"
- is a skeleton script which may be used as a starting point for other
- scripts. Also four litte demo scripts are supplied. Study them carefully.
-
-
- Datatypes:
- ==========
-
- string - a string (e.g. "Hello!")
- account - abstract handle returned by Login()
- number - a cardinal number
- kind - kind of ums flags ("User"="U" / "Global"="G" / "Local"="L")
- boolean - "0" (FALSE) or "1" (TRUE)
- flags - a bitfield (e.g. '00110111 10101001 10100110 10100101'b)
- stem - a stem variable used to hold all fields of a message
-
-
- Functions
- =========
-
- number = UMSLogin (user: string, password: string[, server: string])
- UMSLogout (account: account)
-
- These two functions should be easy to understand.
-
- number = UMSErrNum (account: account)
- string = UMSErrTxt (account: account)
-
- Use these functions to find out if an error and it's reason.
-
- FlushUMS ()
- QuitUMS ()
- number = CleanUMS ()
-
- These function are used to signal the default server.
-
- LogUMS (account: account, level: number, text: string)
-
- Writes a log message to ums' logfile.
-
- number = WriteUMSMsg (account: account, fields: stem)
-
- This one writes a new message to the message base. The field of the message
- must be in the stem. The meaning of the fields numbered from 0 to 127 is
- defined in "UMSConts.rexx". There are some special fields, too: MSGNUM,
- HARDLINK, SOFTLINK, CHAINUP, MSGDATE, HDRFILL, TXTFILL, MSGDATE, AUTOBOUNCE,
- NOUPDATE, HIDE. Please take a look at ums.doc to find put their meaning.
-
- ExportedUMSMsg (account: account, message: number)
- UMSCannotExport (account: account, message: number, error: string)
-
- These are used by exportes. See ums.doc.
-
- boolean = DeleteUMSMsg (account: account, message: number)
-
- Obvious.
-
- booelan = ReadUMSMsgAll (account: account, message: number, fields: stem[, noupdate: boolean])
- booelan = ReadUMSMsgHeader (account: account, message: number, fields: stem[, noupdate: boolean])
- booelan = ReadUMSMsgField (account: account, message: number, fields: stem, field: number[, noupdate: boolean])
-
- These function read a message from the message base and put it's fields
- into the stem. The first function reads all fields, the second just header
- fields and the last only one field. _IMPORTANT_NOTE_: These functions do
- not drop empty fields. Please ensure that you drop the stem before calling
- one of those funktions!
-
- booelan = ReadUMSMsgInfo (account: account, message: number, info: stem)
-
- These reads the binary data associated with a message. It is put into the
- following fields of the stem: HDRLEN, TXTLEN, DATE, UP, DN, LT, RT, GLOBALSTAT,
- USERSTAT, LOGINSTAT, SOFTLINK, HARDLINK
-
- number = UMSSelectFlags (account: account, [kind: kind, set: flags, unset: flags, start: nuber, stop: number, kind: kind, mask: flags, match: flags])
-
- Sets all "set" flags and clears all "clear" flags for all messages between
- "start" and "stop" which fulfills bitand(status,"mask")="match".
-
- number = UMSSelectField (account: account, [kind: kind, set: flags, unset: flags, start: nuber, stop: number,] field: number, string: string[, quick: BOOLEAN])
-
- Selects the message(s) if a certain field has a certain value. "quick"
- enables CRC checking which is fast.
-
- number = UMSSelectDate (account: account, [kind: kind, set: flags, unset: flags, start: nuber, stop: number,] date: number)
-
- Selects Messages younger than "date".
-
- number = UMSSelectTree (account: account, [kind: kind, set: flags, unset: flags,] message: number[, sub: BOOLEAN])
-
- All messages in the reply tree will be selected.
-
- number = UMSSelectMsg (account: account, [kind: kind, set: flags, unset: flags,] message: number)
-
- Selects one message by number.
-
- number = UMSSearchFlags (account: account, [kind: kind, mask: flags, match: flags,] last: number)
-
- Finds the next message starting with "last" with fullfills
- bitand(status,"mask")="match".
-
- number = UMSSearchField (account: account, field: number, string: string, last: number[, direction: number, quick: boolean])
- number = UMSSearchPattern (account: account, field: number, pattern: string, last: number[, direction: number])
-
- Search for the next message fith a certain field.
-
- string = ReadUMSConfig (account: account, name: string[, user: string, globalonly: boolean])
- string = ReadUMSConfigUserName (account: account, aka: string)
- string = NextUMSVar (account: account, last: string, user: string[, globalonly: boolean])
-
- These are used to get configuration variables from ums.config.
-
- boolean = WriteUMSConfig (account: account, name: string, data: string[, user: string, global: boolean])
-
- Wite a variable to ums.config.
-
- boolean = DumpUMSConfig (account: account, file: string)
-
- Dump the current configuration to a file.
-